<?

	$data['find_ikke'] = $deltagere_ider;
	$data['type'] = $this->uri->segment(4); 
	$data['stam_id'] = $this->uri->segment(5);
	$data['redirect_soegning'] = base_url()."core/vis/se/".$type."/".$data['stam_id']."/rediger_deltagere";
	$data['redirect_tilfoej'] = base_url()."core/rediger/tilfoej_begivenhed_deltager/";
    $data['omraade'] = "entitet";

    echo "<h2 class='rubrik'>Søg efter nye deltagere</h2>";
    $this->load->view('soeg/soeg_generel', $data);

//print_r($navne);
?>

<br><br><br>

<div style="overflow:auto;">
    <form action="<?php echo base_url();?>core/rediger/slet_begivenhed_deltager" method="post"><?
    ?>
    <input type="hidden" name="stam_id" value="<? echo $stamdata['id']; ?>">

    <input style="float:right" type="submit" class="rubrik" value="Fjern Deltagere">
    <h2 class="rubrik">Deltagere i <? echo $navne[0]; ?></h2><br>

    <?

        echo "<div style='float:left;'>";
            echo "<h3 class='rubrik'>Individer</h3>";
            echo "<p>";
                   foreach($deltagere_individer as $i)
                   {
 
    	                ?><input type="checkbox" name="valgt_<? echo $i['id'];?>">
                   <?   echo "<b class='ink'>".$i['navn']."</b>"; 
                        echo "<br>";

		    $id_array[] = $i['id']; 
            }
 



            echo "</p>";
        echo "</div>";

        echo "<div style='float:left;'>";
            echo "<h3 class='rubrik'>Grupper</h3>";
            echo "<p>";
            foreach($deltagere_grupper as $g)
            {
	
	                ?><input type="checkbox" name="valgt_<? echo $g['id'];?>">
<?                  echo "<b class='ink'>".$g['navn']."</b>"; 
                    echo "<br>";
                  
		            $id_array[] = $g['id']; 
            }
 
	if(isset($id_array)) {$id_array = $this->array_model->post_ider_send($id_array);
	?><input type="hidden" name="id_array" value="<? echo $id_array; ?>"><?
    }


            echo "</p>";
        echo "</div>";

    ?>
    </form>
</div>



